package com.njiandan.android.api;

import com.njiandan.android.bean.BaseBean;

import retrofit.Callback;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.Multipart;
import retrofit.http.POST;
import retrofit.http.Part;
import retrofit.mime.TypedFile;
import retrofit.mime.TypedString;

/**
 * Created by Administrator on 2015/9/10.
 */
public interface LocationApi {

    @FormUrlEncoded
    @POST("/Api/Location/add")
    void add(
            @Field("latitude") double latitude,
            @Field("lontitude") double lontitude,
            @Field("radius") float radius,
            @Field("addr") String addr,
            @Field("locationDescribe") String locationDescribe,
            @Field("poilist") String poilist,
            @Field("installationId") String installationId,
            Callback<BaseBean> cb
    );

    @Multipart
    @POST("/Api/Index/upload")
    void uploadFile(@Part("file") TypedFile file, @Part("installationId") TypedString installationId, Callback<BaseBean> cb);

}
